<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body background="pic/ManBgroud.gif">
	<div>
		<table width=100% cellpadding=0 cellspacing=0 border=1px>
			<tr>
				<th>新闻编号</th>
				<th>新闻标题</th>
				<th>新闻内容</th>
				<th>新闻时间</th>
				<th>所属板块</th>
				<th>发布人</th>
				<th>操作</th>
			</tr>
			<c:if test="${not empty newsList }">
				<c:forEach items="${newsList }" var="n">
					<tr>
						<td>${n.n_id }</td>
						<td>${n.n_title }</td>
						<td width=30%>${n.n_context }</td>
						<td>${n.n_date }</td>
						<td>${n.board.b_name }</td>
						<td>${n.admin.a_name }</td>
						<td><a href="EditNews?n_id=${n.n_id }">编辑</a>&nbsp;&nbsp;&nbsp;<a href="DeleteNews?n_id=${n.n_id }">删除</a></td>
					</tr>
				</c:forEach>
			
			</c:if>
		</table>
	
	
	</div>

</body>
</html>